<?php
/**
 * @see Zend_Form_Element_Select
 */
require_once 'Zend/Form/Element/Select.php';

/**
 * Wufoo_Form
 *
 * @category   Wufoo
 * @package    Wufoo_Form
 * @copyright  Copyright (c) 2009-2010 Eyeflow Internet Marketing. (http://www.eyeflow.com)
 * @author     Sergei Izvorean
 */
class Wufoo_Form_Element_State extends Zend_Form_Element_Select
{
    /**
     * Read list of states from a data file and set them as options
     *
     * @return void
     */
    public function init()
    {
        $states = file(dirname(__FILE__).'/State/states.txt');
        $states = array_map('trim', $states);

        $this->setMultiOptions($states);
    }
}
